import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'

const Layout = () => import('@/layout/index.vue')

const routes: Array<RouteRecordRaw> = [{
    path: '/',
    component: Layout,
    children: [{
        path: '/dashboard',
        name: 'Dashboard',
        component: () => import('@/views/dashboard/index.vue'),
        meta: {
            title: '首页'
        }
    }]
}]

const router = createRouter({
    routes: routes,
    history: createWebHashHistory()
})

export default router